﻿<Window x:Class="HeadLinx.AD.Explorer.PhotoCacheSettingsDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Photo Cache Settings"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen"
        Width="300"
        Height="200"
        Loaded="Window_Loaded">
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="Margin"
                    Value="5"></Setter>
            <Setter Property="Padding"
                    Value="7,3"></Setter>
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="Padding"
                    Value="7,3"></Setter>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="Padding"
                    Value="7,3"></Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Name="rowSettings"
                           Height="Auto">
            </RowDefinition>
            <RowDefinition Name="rowButtons"
                           Height="*">
            </RowDefinition>
            <RowDefinition Name="rowBottomButtons"
                           Height="Auto">
            </RowDefinition>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal"
                    Grid.Row="0"
                    Margin="10,5"
                    HorizontalAlignment="Stretch">
            <TextBlock VerticalAlignment="Center">Expiration time for cached photos:</TextBlock>
            <ComboBox Name="cbxExpireDuration"
                      Width="Auto">
                <ComboBoxItem>14 days</ComboBoxItem>
                <ComboBoxItem>30 days</ComboBoxItem>
                <ComboBoxItem>Never</ComboBoxItem>
            </ComboBox>
        </StackPanel>

        <StackPanel Orientation="Vertical"
                    Grid.Row="1"
                    Margin="10,5"
                    HorizontalAlignment="Left">
            <Button Name="btnBrowseCache"
                    Height="Auto"
                    Click="btnBrowseCache_Click">Browse Cache...</Button>
        </StackPanel>

        <StackPanel Orientation="Horizontal"
                    Grid.Row="2"
                    Margin="10,5"
                    HorizontalAlignment="Right">
            <Button Name="btnOK"
                    Padding="15,2"
                    IsDefault="True"
                    Click="btnOK_Click">OK</Button>
            <Button Name="btnCancel"
                    Padding="15,2"
                    IsCancel="True"
                    Click="btnCancel_Click">Cancel</Button>
        </StackPanel>

    </Grid>
</Window>
